package com.exam.common.vo;

import com.exam.common.enums.ExceptionEnum;
import lombok.Data;

/**
 * @ClassName : ExceptionResult
 * @Description : 异常结果
 * @Author : WHB
 */
@Data
public class ExceptionResult {
    private int status;
    private String message;
    private Long timestamp;

    public ExceptionResult(ExceptionEnum em){
        this.status = em.getCode();
        this.message = em.getMsg();
        this.timestamp = System.currentTimeMillis();
    }
}
